﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EnterApp.Core.PersistenceModel;
using EnterApp.Core.DomainModel;
using Test.DomainModel.Entities;
using Test.DomainModel.Repositories;

namespace Test.Persistence
{
    public class BookStoreInfoRepository : Repository<BookStoreInfo, UniqueId>, IBookStoreInfoRepository
    {
        public BookStoreInfo GetBookStoreInfo(UniqueId bookId)
        {
            return GetAll().FirstOrDefault(bookStoreInfo => bookStoreInfo.Book.Id == bookId);
        }
    }
}
